package com.googlecode.scrptingdoclet.evaluator;

import javax.script.ScriptEngine;
import javax.script.ScriptException;

import com.thoughtworks.qdox.model.JavaClass;
import com.thoughtworks.qdox.model.JavaField;
import com.thoughtworks.qdox.model.JavaMethod;

public interface Evaluator<T> {

	void setScriptEngine(ScriptEngine engine);

	T evalClass(JavaClass clazz, String script) throws ScriptException;

	void evalMethod(JavaMethod method, String script, T model)
			throws ScriptException;

	void evalField(JavaField filed, String script, T model)
			throws ScriptException;
}
